package com.kaka.controller;

import com.kaka.pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/request")
public class RequestController {

    @GetMapping("/json.do")
    @ResponseBody
    public User testRequestBody(User user) {
        return user;
    }
}
